textview: Replace GdkGC * argument with gpointer
authorBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2010 00:30:08 +0000 (02:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 10 Aug 2010 19:02:29 +0000 (21:02 +0200)
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.

gtk/gtktextdisplay.c
gtk/gtktextdisplay.h
gtk/gtktextutil.c

index ac41da9c025d5833898365f9627195cb51c9816c..1d3487331a2df13ef6643a2fc91a5292e5c1ccb2 100644 (file)
@@ -801,7 +801,7 @@ void
 gtk_text_layout_draw (GtkTextLayout *layout,
                       GtkWidget *widget,
                       GdkDrawable *drawable,
-                     GdkGC       *cursor_gc,
+                     gpointer     cursor_gc,
                       /* Location of the drawable
                          in layout coordinates */
                       gint x_offset,
index b93a84c2b2dde54d99976f00a883399bed2c03d1..3b6e96c0425661027df39cc85dd2a7d6cc5fd054 100644 (file)
@@ -97,7 +97,7 @@ G_BEGIN_DECLS
 void gtk_text_layout_draw (GtkTextLayout        *layout,
                            GtkWidget            *widget,
                            GdkDrawable          *drawable,
-                          GdkGC                *cursor_gc,
+                          gpointer              cursor_gc,
                            gint                  x_offset,
                            gint                  y_offset,
                            gint                  x,
index 32898fa16e86aa0e5dc19bcc34ba1231a1152a2f..d33512056b16daed1553eaa6c8240e93097b1afd 100644 (file)
@@ -357,7 +357,7 @@ _gtk_text_util_create_rich_drag_icon (GtkWidget     *widget,
    cairo_paint (cr);
 
    gtk_text_layout_draw (layout, widget, drawable,
-                         widget->style->text_gc [gtk_widget_get_state (widget)],
+                         NULL,
                          - (1 + DRAG_ICON_LAYOUT_BORDER),
                          - (1 + DRAG_ICON_LAYOUT_BORDER),
                          0, 0,